-- GENERATED SPELL FOR [Ring-Lord Sorceress] --


function spell0_27639(pUnit, Event) --@Blizzard,n/a--
pUnit:FullCastSpellOnTarget(50715,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27639', 6000, 1)
end

function spell1_27639(pUnit, Event) --@Blizzard,n/a--
pUnit:FullCastSpellOnTarget(59278,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27639', 6000, 1)
end

function spell2_27639(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(16102,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27639', 11000, 1)
end

function spell3_27639(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(61402,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27639', 10000, 1)
end

function Sorts_27639(pUnit, Event)
local choix_sorts_27639 = math.random(0, 3)
if choix_sorts_27639 == 0 then
pUnit:RegisterEvent('spell0_27639', 1, 1)
end
if choix_sorts_27639 == 1 then
pUnit:RegisterEvent('spell1_27639', 1, 1)
end
if choix_sorts_27639 == 2 then
pUnit:RegisterEvent('spell2_27639', 1, 1)
end
if choix_sorts_27639 == 3 then
pUnit:RegisterEvent('spell3_27639', 1, 1)
end
end

function mob27639_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27639', math.random(1500, 3000), 1)
end

function mob27639_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27639_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27639_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27639, 1, 'mob27639_Action')
RegisterUnitEvent(27639, 2, 'mob27639_Leave')
RegisterUnitEvent(27639, 3, 'mob27639_Kill')
RegisterUnitEvent(27639, 4, 'mob27639_Die')
